<table align="center" border="1" width="450">
				<?php echo $this->session->flashdata("flash_message") ;  ?>
				
				<!--    thong bao khi flashdata khi delete thanh cong  -->
				<?php  echo $this->session->flashdata("flash_delete") ?>
					
<?php  
			if (isset($mess) ){
				echo "<div class ='mess_succ'>";
					echo $mess ;
				echo "</div>";
			}


   ?>
            	<tr>
                	<td colspan="5"><strong><a href="<?php echo base_url()."$module/user/add" ?>"><font color="#99CC33">DANH SACH USERS</font></a></strong></td>
                </tr>
            	<tr>
                	<td class="title">STT</td>
                    <td class="title">Username</td>
					<td class="title">Email</td>
                    <td class="title">Level</td>
                    <td class="title">Edit</td>
                    <td class="title">Del</td>
                </tr>
                
        <?php
				$stt=0; 
				foreach($info as $item){
								$stt++; 
								echo "<tr>";
								echo "<td>$stt</td>";
								echo "<td>$item[username]</td>";
								echo "<td>$item[email]</td>";
								if($item['level']== 1){		// member 
									echo "<td>Member</td>";
								}else {
									echo "<td><font color='red'>Admin</font></td>";
								}
								echo "<td><a href='".base_url()."$module/user/edit/$item[id]'>Edit</a></td>";
								echo "<td><a href='".base_url()."$module/user/del/$item[id]'>Del</a></td>";
								echo "</tr>";
				}
		?>
		
      
</table>

		<br />
		<br />
		<br />
		<br />
		
		<?php
				echo $pagelink;
		?>
